module.exports = {
    //加密
    hmc(pwd){
        const crypto = require('crypto');

        const hash = crypto.createHmac('sha256', 'blog')
                        .update(pwd)
                        .digest('hex');
        return hash
    }
}